<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class crm_tourist extends Model
{
	// 游客详情表模型
    protected $table = 'crm_tourist';
    protected $fillable = ['tourist_name','tourist_sex','tourist_phone','tourist_number','deal_id','order_id','tourist_type','tourist_typename','tourist_xinxi','tourist_userid','tourist_shengri']; 
    public $timestamps = false;

    // 关联工单表模型
    public function crm_deal()
    {
        return $this->belongsTo('App\crm_deal','deal_id', 'deal_id');
    }
    // 关联成交单表模型
    public function crm_order()
    {
        return $this->belongsTo('App\crm_order','order_id', 'order_id');
    }
}
